package com.sskj.bibi.http;


import com.lzy.okgo.request.GetRequest;
import com.lzy.okgo.request.PostRequest;
import com.lzy.okgo.request.base.Request;
import com.sskj.bibi.bean.CoinBean;
import com.sskj.bibi.bean.CoinFee;
import com.sskj.bibi.bean.EntrustBean;
import com.sskj.bibi.bean.UserCoinInfo;
import com.sskj.common.adapter.slimadapter.IViewInjector;
import com.sskj.common.base.HttpData;
import com.sskj.lib.bean.PageBean;
import com.sskj.lib.bean.StockCoinBean;
import com.sskj.lib.bean.WSFiveBean;

import java.util.List;
import java.util.concurrent.ForkJoinPool;

/**
 * 作者 :吕志豪
 * 简书：https://www.jianshu.com/u/6e525b929aac
 * github：https://github.com/lvzhihao100
 * 描述：
 * 创建时间：2018-10-15 14:08
 */
public interface IHttpService {

    PostRequest<HttpData<PageBean<EntrustBean>>> getCoinEntrustingList(String code);
    /**
     * 取消币币交易的单子
     *
     * @return
     */
    PostRequest<HttpData> cancelCoinOrder(String orderId);
    /**
     * 获取产品信息
     *
     * @param code
     * @return
     */
    GetRequest<HttpData<List<StockCoinBean>>> getProduct(String code);

    GetRequest<HttpData<List<CoinBean>>> getAllCoinInfo();

    PostRequest<HttpData<PageBean<EntrustBean>>> getBibiTradeRecord(String code, String type, String status,int page);
    PostRequest<HttpData<List<EntrustBean>>> getBibiCurrentTrade(String code, String type);

    PostRequest<HttpData<PageBean<EntrustBean>>> getCoinEntrustList(String code, String type, String status,int page);

    PostRequest<HttpData<PageBean<EntrustBean>>> getCoinEntrustListAll(String code, String type, String status);
    /**
     * 获取用户该币的信息 可用
     *
     * @param code
     */
    PostRequest<HttpData<UserCoinInfo>> getCoinTypeInfo(String code);
    /**
     * 获取币币交易手续费
     *
     * @return
     */
    GetRequest<HttpData<CoinFee>> getCoinFee(String name);
    /**
     * 创建币币交易订单
     *
     * @return
     */
    PostRequest<HttpData> createCoinOrder(String code, String price, String num, String tradeType, String billPriceType);

    GetRequest<HttpData<List<WSFiveBean>>> getPankou(String code);
}